This scripts opens a VOODOO project, enters the design mode and adds all the files of one or more given folders to the root node of the VOODOO project. Afterwards it brings the project window to the foreground. Now, you may move the newly created component nodes to the desired structure nodes and leave the design mode to store the new structure afterwards.
If you don't want to arrange the newly defined nodes by hand you may replace the line "activate" with the command "leave design mode".